package sjtu.ist.warehouse4ws.service;


import java.util.List;

import sjtu.ist.warehouse4ws.dao.FunctionpointEpcDao;
import sjtu.ist.warehouse4ws.dao.cust.CustFunctionpointEpcDao;
import sjtu.ist.warehouse4ws.model.FunctionpointEpc;
import sjtu.ist.warehouse4ws.tool.Constants;

public class FunctionpointEpcServiceImpl implements FunctionpointEpcService{
	private FunctionpointEpcDao functionpointEpcDao;
	private CustFunctionpointEpcDao custFunctionpointEpcDao;

	public void setFunctionpointEpcDao(FunctionpointEpcDao functionpointEpcDao) {
		this.functionpointEpcDao = functionpointEpcDao;
	}

	public void setCustFunctionpointEpcDao(
			CustFunctionpointEpcDao custFunctionpointEpcDao) {
		this.custFunctionpointEpcDao = custFunctionpointEpcDao;
	}

	@Override
	public void save(FunctionpointEpc functionpointEpc, int companyId) {
		// TODO Auto-generated method stub
		if(companyId==Constants.ADMIN_COMPANY_ID){
			this.functionpointEpcDao.save(functionpointEpc);
		}else{
			
		}
		
	}	
	@Override
	public List find(String uid) {
		// TODO Auto-generated method stub
		return functionpointEpcDao.find(uid);
	}
}
